<?php
use Yii\helpers\Html;
use yii\helpers\Url;
use backend\components\SideNavWidget;
?>
<div class="col-md-2">
    <?php

    $menuItem = [];
    if ($access = Yii::$app->params['access']) {
        isset($access['DOWNLOAD']['INDEX']) && $menuItem[] = ['label' => '软件展示', 'url' => ['/download/index']];
        isset($access['DOWNLOAD']['SOFTCATELIST']) && $menuItem[] = ['label' => '软件分类', 'url' => ['/download/softcatelist']];
        isset($access['DOWNLOAD']['LOGS']) && $menuItem[] = ['label' => '下载日志', 'url' => ['/download/logs']];
    } else {
        $menuItem = [
            ['label' => '软件展示', 'url' => ['/download/index']],
            ['label' => '软件分类', 'url' => ['/download/softcatelist']],
            ['label' => '下载日志', 'url' => ['/download/logs']],
        ];
    }

    
    
    echo SideNavWidget::widget([
        'options' => ['class' => 'list-group'],
        'items' => $menuItem,
    ]);

    
    ?>
</div>